package com.isias.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.isias.model.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author fanyi
 * @since 2023-02-21
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    @Select("select * from sys_menu where status=1 and is_deleted = 0")
    List<SysMenu> SelectMenusWithStatus();

    List<SysMenu> FindMenuListUserId(String id);

    Integer updataStatus(String id, Integer status);

}
